﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WorkflowDesigner
{
    public partial class fmAuditNodeProperty : Form
    {
        private AuditNode _Node = null;

        private fmAuditNodeProperty()
        {
            InitializeComponent();
        }

        private fmAuditNodeProperty(AuditNode node)
            : this()
        {
            this._Node = node;

            this.auditNodeBindingSource.DataSource = node;
        }

        public static void Show(AuditNode node)
        {
            fmAuditNodeProperty fm = new fmAuditNodeProperty(node);
            Form topForm = node.GetTopForm();
            if (topForm != null)
            {
                fm.Owner = topForm;
            }

            fm.Show();
        }



    }
}
